<script src="js/pngfix.js" type="text/javascript"></script>
<script language="javascript">
function check_form2()
{
	if(document.login.username.value=='')
	{
		alert("請輸入您的賬號！");
	    return (false);
	}    	
	
    if(document.login.password.value=="")
    {
        alert("請輸入密碼");
        return (false);
    }
	
	if(document.login.number.value==""||document.login.number.value!=<{$rand}>)
    {
        alert("請輸入正確的驗證碼");
        return (false);
    }
 
}  	
</script>
<div class="top">
  <div class="logoflash">
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="640" height="99">
      <param name="movie" value="images/banner_bg0526.swf" />
      <param name="quality" value="high" />
      <param name="wmode" value="transparent" />
      <embed src="images/banner_bg0526.swf" width="640" height="99" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed>
    </object>
  </div>
  <div class="login">
   <{if !isset($mem_id) }>
   <form name="login" action="login.php?login=1" method="post" onSubmit="return check_form2()"  style="margin:0px">
    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td height="25" colspan="4"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="37%"><img src="images/login-a.gif" width="88" height="20" /></td>
            <td width="7%"><input name="type" type="radio" value="1" checked="checked" /></td>
            <td width="23%">一般會員</td>
            <td width="7%"><input type="radio" name="type" value="2" /></td>
            <td width="26%">房東會員</td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td width="19%" height="24">帳&nbsp;&nbsp;號：</td>
        <td width="37%"><input name="username" type="text" class="kuang" size="15" value="<{$Cookie}>"/></td>
        <td width="24%" rowspan="2"><div align="center"><input type="image" src="images/loing.gif" width="54" height="48" /></div></td>
        <td width="20%"><a href="join.php">加入會員</a></td>
      </tr>
      <tr>
        <td height="24">密&nbsp;&nbsp;碼：</td>
        <td><input name="password" type="password" class="kuang" size="15" /></td>
        <td><a href="findpass.php">忘記密碼</a></td>
      </tr>
      <tr>
        <td height="24">驗證碼：</td>
        <td><input name="number" type="text" class="kuang2" size="8" />
        <span style="font-size:14px; font-weight:bold; color:#FF3300"><{$rand}></span></td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
    </table>
    
      </form>
      <{else}>
     
      <table width="100%" height="108" border="0" cellpadding="0" cellspacing="0">     
        <tr>
          <td>
          <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td><table width="100%" border="0" cellspacing="0" cellpadding="0">               
                <tr>
                  <td width="15" height="28" align="left"><img src="images/zhuce_09.jpg" width="8" height="28"></td>
                  <td width="82" align="left"><img src="images/zhuce_12.jpg" width="73" height="18"></td>
                  <td width="87" style="font-size:12px; padding-top:7px;">                   
                   <{if $type==1}>
                      <span class="dengru">－ 一般會員 －</span>
                    <{else}>
                      <span class="dengru">－ 房東會員 －</span>
                    <{/if}>
                    </td>
                  <td width="87"><span class="dengru"><a href="member.php">- 會員中心 - </a></span></td>
                </tr>
              </table></td>
            </tr>            
            <tr>
              <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td width="1%" class="dengru">&nbsp;</td>
                  <td width="60%" rowspan="2" align="center" class="hygl">你好，<{$mem_id}>，歡迎光臨！</td>
                  <td width="21%" rowspan="2" align="right"><a href="out.php"><img src="images/dc.gif" width="53" height="53" border="0" /></a></td>
                  <td width="1%" class="dengru">&nbsp;</td>
                </tr>
                <tr>
                  <td class="dengru">&nbsp;</td>
                  <td class="dengru">&nbsp;</td>
                </tr>
                <tr>
                  <td colspan="2" valign="top">&nbsp;</td>
                  <td>&nbsp;</td>
                  <td>&nbsp;</td>
                </tr>
              </table></td>
            </tr>           
          </table></td>
        </tr>
      </table>    
       <{/if}>
    
  </div>
</div>